package com.yanwu.www.config.version;

import org.springframework.web.bind.annotation.Mapping;
 
import java.lang.annotation.*;
 
/**
 * @ClassName:  ApiVersion
 * @Description: 版本控制
 * @author: harvey
 * @date:   2019/2/26 10:32
 */
@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Mapping
public @interface ApiVersion {
    /**
     * 标识版本号
     * @return
     */
    int value() default 1;
}
